Optimal. Leaf size=29 \[ \frac {(g x)^{1+m} \left (a+b x^n+c x^{2 n}\right )^{1+p}}{g} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 56, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.018, Rules used = {1761}
\begin {gather*} \frac {(g x)^{m+1} \left (a+b x^n+c x^{2 n}\right )^{p+1}}{g} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1761
Rubi steps
\begin {align*} \int (g x)^m \left (a+b x^n+c x^{2 n}\right )^p \left (a (1+m)+b (1+m+n+n p) x^n+c (1+m+2 n (1+p)) x^{2 n}\right ) \, dx &=\frac {(g x)^{1+m} \left (a+b x^n+c x^{2 n}\right )^{1+p}}{g}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.88, size = 24, normalized size = 0.83 \begin {gather*} x (g x)^m \left (a+x^n \left (b+c x^n\right )\right )^{1+p} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \left (g x \right )^{m} \left (a +b \,x^{n}+c \,x^{2 n}\right )^{p} \left (a \left (1+m \right )+b \left (n p +m +n +1\right ) x^{n}+c \left (1+m +2 n \left (1+p \right )\right ) x^{2 n}\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 60 vs.
\(2 (29) = 58\).
time = 0.35, size = 60, normalized size = 2.07 \begin {gather*} {\left (a g^{m} x x^{m} + c g^{m} x e^{\left (m \log \left (x\right ) + 2 \, n \log \left (x\right )\right )} + b g^{m} x e^{\left (m \log \left (x\right ) + n \log \left (x\right )\right )}\right )} {\left (c x^{2 \, n} + b x^{n} + a\right )}^{p} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 65 vs.
\(2 (29) = 58\).
time = 0.35, size = 65, normalized size = 2.24 \begin {gather*} {\left (c x x^{2 \, n} e^{\left (m \log \left (g\right ) + m \log \left (x\right )\right )} + b x x^{n} e^{\left (m \log \left (g\right ) + m \log \left (x\right )\right )} + a x e^{\left (m \log \left (g\right ) + m \log \left (x\right )\right )}\right )} {\left (c x^{2 \, n} + b x^{n} + a\right )}^{p} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 96 vs.
\(2 (29) = 58\).
time = 3.62, size = 96, normalized size = 3.31 \begin {gather*} {\left (c x^{2 \, n} + b x^{n} + a\right )}^{p} c x x^{2 \, n} e^{\left (m \log \left (g\right ) + m \log \left (x\right )\right )} + {\left (c x^{2 \, n} + b x^{n} + a\right )}^{p} b x x^{n} e^{\left (m \log \left (g\right ) + m \log \left (x\right )\right )} + {\left (c x^{2 \, n} + b x^{n} + a\right )}^{p} a x e^{\left (m \log \left (g\right ) + m \log \left (x\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.25, size = 50, normalized size = 1.72 \begin {gather*} \left (a\,x\,{\left (g\,x\right )}^m+b\,x\,x^n\,{\left (g\,x\right )}^m+c\,x\,x^{2\,n}\,{\left (g\,x\right )}^m\right )\,{\left (a+b\,x^n+c\,x^{2\,n}\right )}^p \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________